import axios from "@/utils/axios";
export const getUnreadMsg = data => {
  return axios.request({
    url: "front/message/center?type=unread",
    method: "get"
  });
};

export const addAddr = data => {
  return axios.request({
    url: "front/message/center?type=unread",
    data,
    method: "post"
  });
};

export const getSysMsg = params => {
  return axios.request({
    url: "front/message/center?type=system",
    method: "get",
    params
  });
};

export const getCommissionMsg = params => {
  return axios.request({
    url: "front/message/center?type=bonus",
    method: "get",
    params
  });
};

export const getCommentMsg = params => {
  return axios.request({
    url: "front/message/center?type=evaluate",
    method: "get",
    params
  });
};
